package com.yehui.jdk;

import java.util.Arrays;

/**
 * @author 业徽
 * @date 2021/7/28
 */
public class StreamDemo {

    public static void main(String[] args) {
        Arrays.asList(1, 2, 3, 4)
                .stream()
                .filter(integer -> integer > 0)
                .forEach(integer -> {
                    System.out.println(integer);
                });
    }

}
